package a.f.h.f.a;

import a.c.*;
import a.c.d;
import a.c.k;
import a.c.m;
import a.f.j.eb;

import java.util.ArrayList;

public class o
  extends eb
{
  protected k k;
  protected int[] l;
  public static boolean m;
  
  public void a(q paramq)
  {
    super.a(paramq);
    this.l = new int[paramq.k()];
  }
  
  public void a(k paramk)
  {
    this.k = paramk;
  }
  
  protected void a()
  {
    int j = e.i;
    boolean bool = e.h;
    super.a();
    do
    {
      for (int i = 0; !bool; i++)
      {
        if (i >= this.a.j()) {
          break;
        }
        if (bool) {
          break label50;
        }
        this.l[i] = 0;
      }
    } while (j != 0);
    label50:
    m localm = this.a.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      if (j == 0)
      {
        if (this.k.getInt(locald) == 1) {
          this.l[locald.f().f()] += 1;
        }
        localm.f();
      }
    } while (!bool);
  }
  
  protected void a(ArrayList paramArrayList1, ArrayList paramArrayList2)
  {
    int i1 = e.i;
    boolean bool = e.h;
    paramArrayList2.clear();
    int i = 2147483647;
    int j = 0;
    do
    {
      if (j >= paramArrayList1.size()) {
        break;
      }
      a.c.e locale = (a.c.e)paramArrayList1.get(j);
      int n = this.c[locale.f()];
      if ((i1 != 0) || (this.l[locale.f()] <= 0))
      {
        if (i1 == 0)
        {
          if (n < i)
          {
            i = n;
            paramArrayList2.clear();
          }
          if (i1 != 0) {
            continue;
          }
        }
        if (n == i) {
          paramArrayList2.add(locale);
        }
      }
      j++;
    } while (!bool);
  }
  
  public void a(ArrayList paramArrayList1, ArrayList paramArrayList2, ArrayList paramArrayList3, bb parambb)
  {
    int n = e.i;
    boolean bool = e.h;
    if (n == 0) {}
    a.c.e locale1 = this.b ? a(paramArrayList2) : (a.c.e)paramArrayList2.get(0);
    int i = paramArrayList1.indexOf(locale1);
    if (n == 0) {
      if (i >= 0) {
        paramArrayList1.remove(i);
      }
    }
    parambb.add(locale1);
    paramArrayList3.clear();
    this.d[locale1.f()] = true;
    m localm = locale1.l();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      a.c.e locale2 = locald.a(locale1);
      int j = locale2.f();
      if (n == 0)
      {
        if (this.d[j] == 0)
        {
          if (n == 0)
          {
            if (this.k.getInt(locald) == 1) {
              this.l[j] -= 1;
            }
            this.c[j] -= 1;
          }
          paramArrayList3.add(locale2);
        }
        localm.f();
      }
    } while (!bool);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.h.f.a.o

 * JD-Core Version:    0.7.0.1

 */